package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseResponse;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/12/15 0015.
 */

public class ReportFromsTypeResponse extends BaseResponse {

    /**
     * data : {"coursetotal":"5","coursefinishnum":"0","courseassistnum":"0","uncompletenum":"5","typelist":[{"typeid":"8a2d92635b7a46da015b8f246b8514a5","typename":"感统测25%","coursetypetotal":"1","coursetypefinishnum":"0","coursetypeassistnum":"0"},{"typeid":"8a2d92635b605893015b608f1fe10183","typename":"精细33","coursetypetotal":"4","coursetypefinishnum":"0","coursetypeassistnum":"0"}],"resultlist":null}
     */

    private ReportTypeBean data;

    public ReportTypeBean getData() {
        return data;
    }

    public void setData(ReportTypeBean data) {
        this.data = data;
    }

    public static class ReportTypeBean {
        /**
         * coursetotal : 5
         * coursefinishnum : 0
         * courseassistnum : 0
         * uncompletenum : 5
         * typelist : [{"typeid":"8a2d92635b7a46da015b8f246b8514a5","typename":"感统测25%","coursetypetotal":"1","coursetypefinishnum":"0","coursetypeassistnum":"0"},{"typeid":"8a2d92635b605893015b608f1fe10183","typename":"精细33","coursetypetotal":"4","coursetypefinishnum":"0","coursetypeassistnum":"0"}]
         * resultlist : null
         */

        private String coursetotal;
        private String coursefinishnum;
        private String courseassistnum;
        private String uncompletenum;
        private Object resultlist;
        private ArrayList<TypelistBean> typelist;

        public String getCoursetotal() {
            return coursetotal;
        }

        public void setCoursetotal(String coursetotal) {
            this.coursetotal = coursetotal;
        }

        public String getCoursefinishnum() {
            return coursefinishnum;
        }

        public void setCoursefinishnum(String coursefinishnum) {
            this.coursefinishnum = coursefinishnum;
        }

        public String getCourseassistnum() {
            return courseassistnum;
        }

        public void setCourseassistnum(String courseassistnum) {
            this.courseassistnum = courseassistnum;
        }

        public String getUncompletenum() {
            return uncompletenum;
        }

        public void setUncompletenum(String uncompletenum) {
            this.uncompletenum = uncompletenum;
        }

        public Object getResultlist() {
            return resultlist;
        }

        public void setResultlist(Object resultlist) {
            this.resultlist = resultlist;
        }

        public ArrayList<TypelistBean> getTypelist() {
            return typelist;
        }

        public void setTypelist(ArrayList<TypelistBean> typelist) {
            this.typelist = typelist;
        }

        public static class TypelistBean implements Parcelable{
            /**
             * typeid : 8a2d92635b7a46da015b8f246b8514a5
             * typename : 感统测25%
             * coursetypetotal : 1
             * coursetypefinishnum : 0
             * coursetypeassistnum : 0
             */

            private String typeid;
            private String typename;
            private String coursetypetotal;
            private String coursetypefinishnum;
            private String coursetypeassistnum;

            protected TypelistBean(Parcel in) {
                typeid = in.readString();
                typename = in.readString();
                coursetypetotal = in.readString();
                coursetypefinishnum = in.readString();
                coursetypeassistnum = in.readString();
            }

            public static final Creator<TypelistBean> CREATOR = new Creator<TypelistBean>() {
                @Override
                public TypelistBean createFromParcel(Parcel in) {
                    return new TypelistBean(in);
                }

                @Override
                public TypelistBean[] newArray(int size) {
                    return new TypelistBean[size];
                }
            };

            public String getTypeid() {
                return typeid;
            }

            public void setTypeid(String typeid) {
                this.typeid = typeid;
            }

            public String getTypename() {
                return typename;
            }

            public void setTypename(String typename) {
                this.typename = typename;
            }

            public String getCoursetypetotal() {
                return coursetypetotal;
            }

            public void setCoursetypetotal(String coursetypetotal) {
                this.coursetypetotal = coursetypetotal;
            }

            public String getCoursetypefinishnum() {
                return coursetypefinishnum;
            }

            public void setCoursetypefinishnum(String coursetypefinishnum) {
                this.coursetypefinishnum = coursetypefinishnum;
            }

            public String getCoursetypeassistnum() {
                return coursetypeassistnum;
            }

            public void setCoursetypeassistnum(String coursetypeassistnum) {
                this.coursetypeassistnum = coursetypeassistnum;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(typeid);
                dest.writeString(typename);
                dest.writeString(coursetypetotal);
                dest.writeString(coursetypefinishnum);
                dest.writeString(coursetypeassistnum);
            }
        }
    }
}
